<%@ page import="java.util.ArrayList" %>
<%@ page import="StudentLesson.StuCourseWorkEnity" %>
<%@ page import="StudentLesson.StuCourseWorkDao" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/26
  Time: 13:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>批改作业</title>
    <link href="/SystemerNav/SystemerNav.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
</head>
<%
 String courseNo=request.getParameter("courseNo");
 String workerNo=request.getParameter("workerNo");
 int courseId=Integer.parseInt(request.getParameter("id"));
%>
<body background="/LoginInterface/loginFace.jpg">
 <div class="container">
     <table class="table table-hover">
         <tr>
             <td colspan="3" align="center">作业批改</td>
         </tr>
         <tr>
             <td>学生学号</td>
             <td>提交时间</td>
             <td>分数</td>
             <td>查看</td>
         </tr>
         <%
             StuCourseWorkDao stuCourseWorkDao=new StuCourseWorkDao();
             ArrayList<StuCourseWorkEnity> list=stuCourseWorkDao.getStuCouseWork(workerNo,courseNo,courseId);
             for (StuCourseWorkEnity temp:list){
                 %>
            <tr>
             <td><%=temp.getStudentNo()%></td>
             <td><%=temp.getSubmitTime()%></td>
             <td><%=temp.getScore()%></td>
             <td>
                 <form action="CorrectWorkDetail.jsp">
                     <input type="hidden" name="id" value="<%=temp.getId()%>">
                     <button type="submit" class="btn btn-success">查看</button>
                 </form>
             </td>
            </tr>
         <%
             }%>

     </table>
 </div>
</body>
</html>
